Ext.define('MyApp.controller.addresslist.AddressListController', {
	extend : 'MyApp.controller.share.BaseGridController',
	views : ['addresslist.AddressListView','addresslist.AddressListForm'],
	stores : ['AddressListStore'],
	models : ['AddressListEntity'],
	requires : ['Ext.ux.ProgressBarPager'],
	refs : [
			//{ ref: 'userview', selector: 'userview' }
	],
	init : function() {
		this.control({
			'addresslistview button#add' : {
	        	click:function(btn){
					this.onAddButtonClick('addresslistform');
				}
	        },
	        'addresslistform button#save':{
	        	click:function(btn){
	        		var me = this;
	        		me.onSaveButtonClick(btn,me.getAddressListStoreStore(),me.getAddressListEntityModel());
	        	}
	        }
		});
	}
});